<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
	
	<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
	<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
	<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
   	<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
 	<link href="images/workspace.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" /> 
 	
	<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
	<script src="js/crm.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script> 
	<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script> 
  	<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
	<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
	
	<title>后台管理</title>
	
</head>

<body class="body_ifm">
	<div class="infoboxp">   
	 	
	 	<div class="tabs_info" style="height:36px;">
        	<ul>
               	<li class="curr"><a href="index.php?m=crm_concern">我的跟进</a></li>
               	{yun:}if in_array('804',$power){/yun}
				<li><a href="index.php?m=crm_concern&c=depart">下属的跟进</a></li>
				{yun:}/if{/yun}
			</ul>
		</div>
		
		<div class="crm_searctime">
           	<ul>
               	<li {yun:}if $smarty.get.day==''{/yun}class='curr'{yun:}/if{/yun}><a href="index.php?m=crm_concern">全部</a></li>
                <li {yun:}if $smarty.get.day==1{/yun}class='curr'{yun:}/if{/yun}><a href="index.php?m=crm_concern&day=1">今天</a></li>
                <li {yun:}if $smarty.get.day==2{/yun}class='curr'{yun:}/if{/yun}><a href="index.php?m=crm_concern&day=2">昨天</a></li>
                <li {yun:}if $smarty.get.day==3{/yun}class='curr'{yun:}/if{/yun}><a href="index.php?m=crm_concern&day=3">本周</a></li>
                <li {yun:}if $smarty.get.day==4{/yun}class='curr'{yun:}/if{/yun}><a href="index.php?m=crm_concern&day=4">本月</a></li>
           	</ul>
       	</div>
       	
	  	<div class="clear"></div>
      	
      	<div class="table-list" style=" margin-top:10px;">
	  		<div class="admin_table_border">	
      			<table width="100%">
		      		<thead>
		      			<tr class="admin_table_top">
		      				<th>客户名称</th>
		      				<th>跟进方式</th>
		      				<th>跟进结果</th>
		      				<th>时间</th>
		      				<th>操作</th>
		      			</tr>
		        	</thead>
		        	
		       		<tbody>
		       			{yun:}foreach from = $rows item = v{/yun}
      					<tr>
      						
      						<td>
     							<div style="padding-left:10px;">
      								<a href='{yun:}url m=company c=show id=$v.uid{/yun}' target="_blank">{yun:}$v.name{/yun}</a>
       								<div class="mt5">联系人：<a href="javascript:OpenContact('{yun:}$v.uid{/yun}','index.php?m=crm_waitingtask&c=ComDetail')" class="admin_com_name">{yun:}$v.linkman{/yun}</a></div>
       							</div>
       						</td>
							<td align="center">{yun:}$v.type_n{/yun}</td>
 						 	<td>
						 		<div style="max-width:300px;padding-left:10px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">
						 			{yun:}$v.content{/yun}
						 		</div>
						 	</td>
							
							<td align="center">{yun:}$v.atime|date_format:'Y-m-d H:i:s'{/yun}</td>
							<td align="center">
								<input type="hidden" id="pytoken" name="pytoken" value="{yun:}$pytoken{/yun}">
								{yun:}if $v.isup == 1{/yun}
									<a href="index.php?m=crm_customer&c=com&id={yun:}$v.uid{/yun}" target="_blank" class="crm_submitxg" style="margin-bottom:8px;">修改</a>
								<br>
								{yun:}/if{/yun}
								<a href="javascript:void(0);" onClick="layer_del('确定要删除？', 'index.php?m=crm_concern&c=del&id={yun:}$v.id{/yun}');" class="crm_submitqx  ">删除</a>
							</td>
      					</tr>
       					{yun:}foreachelse{/yun}
      					
	      					<tr align="center">
					        	<td class="ud" colspan="7"><div class="admin_notip">暂无跟进记录~</div></td>
					      	</tr>
      					
      					{yun:}/foreach{/yun}
      					

      					{yun:}if $total > $config.sy_listnum {/yun}
					 		<tr>
								{yun:}if $pagenum==1{/yun}
									<td colspan="3"> 从 1 到 {yun:}$config.sy_listnum {/yun} ，总共 {yun:}$total{/yun} 条</td>
								{yun:}else if $pagenum > 1 && $pagenum < $pages{/yun}
									<td colspan="3"> 从 {yun:}($pagenum-1) * $config.sy_listnum + 1{/yun} 到 {yun:}$pagenum * $config.sy_listnum{/yun} ，总共 {yun:}$total{/yun} 条</td>
								{yun:}else if $pagenum == $pages{/yun}
									<td colspan="3"> 从 {yun:}($pagenum-1) * $config.sy_listnum + 1{/yun} 到 {yun:}$total{/yun} ，总共 {yun:}$total{/yun} 条</td>
								{yun:}/if{/yun}
								<td colspan="4" class="digg">{yun:}$pagenav{/yun}</td>
							</tr>
						{yun:}/if{/yun}
        			</tbody>
        			<input type="hidden" name="pytoken" id="pytoken" value="{yun:}$pytoken{/yun}" />
      			</table>
          	</div>
      	</div>
	</div>
 
	<script>
		layui.use('layer', function(){
	  		var $ = layui.jquery,
	  			layer = layui.layer; 
		});
	</script>
	{yun:}include file="$adminstyle/crm_public.htm"{/yun}

</body>
</html>